package week04.window02.abs;

import week04.window02.imp.WindowImp;

/**
 * Created by zhangxiaokun on 2018/2/26.
 */
public abstract class Window {
    public WindowImp windowImp;

    public Window(WindowImp windowImp){
        this.windowImp = windowImp;
    }

    public void drawText() {
        windowImp.devDrawText();
    }

    public void drawRect() {
        windowImp.devDrawLine();
        windowImp.devDrawLine();
        windowImp.devDrawLine();
        windowImp.devDrawLine();
    }
}
